package chain;

/**
 * @author yunfei.shang
 * @title
 * @date 2018/07/26 14:56
 * @descreption
 */
public class CalculateInvoker implements ICalculator {
    public Object invoke(Object t) {
        if (verify(t)) {
            return exec(t);
        }
        return null;
    }

    @Override
    public boolean verify(Object t) {
        return false;
    }

    @Override
    public Object exec(Object t) {
        return 0;
    }
}
